﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Desaware.MachineLicense40;
using FMS.Formulation.Licensing.Engine;

internal class BiosIdentifiers : ISystemIdentifier
{
    public string Name => "BIOS";

    public string[] Values
    {
        get
        {
            WMIBiosInfo wMIBiosInfo = new WMIBiosInfo();
            wMIBiosInfo.Read();
            string[] array = new string[1] { wMIBiosInfo.SerialNumber };
            Utilities utilities = new Utilities();
            string[] array2 = new string[array.GetLength(0)];
            for (int i = 0; i < array.GetLength(0); i++)
            {
                array2.SetValue(utilities.GetHash256OfString(array[i]), i);
            }
            return array2;
        }
    }
}
